import torch
from torch import nn
from torch.nn import functional as func


class Net(nn.Module):

    def __init__(self):
        super(Net, self).__init__()

        # xw + b
        self.fc1 = nn.Linear(28 * 28, 256)
        self.fc2 = nn.Linear(256, 64)
        self.fc3 = nn.Linear(64, 10)

        return

    def forward(self, x):
        x = func.relu(self.fc1(x))
        x = func.relu(self.fc2(x))
        x = self.fc3(x)
        return x

